﻿
new Vue({
    el: '#app',
    delimiters:['[[', ']]'],

    data: {
        uid: {{ user.id }},
        room_id: {{ user.room_id }},
        room_title: '{{ user.room_title }}',
        extra_heat: '{{ user.extra_heat }}',
    },

    methods: {
        saveRoomHeatFactor() {
            let url = "{% url 'gma:api_edit_room_extra_heat' %}";
            let data = {
                'uid' : this.uid,
                'extra_heat' : this.extra_heat,
            };
            new my_ajax(url, data, '', '', () => {
                show_toast('修改成功');
                redirect();
            });
        },

        cancel() {
            window.history.back();
        },
    },

    mounted() {
    },
});
